
module.exports = {
    //修改文件路径
    //publicPath:process.env.NODE_ENV === 'production'?'./':'/',
     publicPath: './',
    //声明配置webpack
    // css: {
    //   loaderOptions: {
    //     sass: {
    //       data: `@import "@/assets/css/public.scss";`
    //     }
    //   }
    // },
    chainWebpack: config => {
      const oneOfsMap = config.module.rule("scss").oneOfs.store;
      oneOfsMap.forEach(item => {
        item
          .use("sass-resources-loader")
          .loader("sass-resources-loader")
          .options({
            resources: ["./src/assets/css/public.scss"]
          })
          .end();
      });
    },
    configureWebpack: {
      resolve: {
        //配置路径别名
        alias: {
          'assets': '@/assets',
          'common': '@/common',
          'components': '@/components',
          'network': '@/network',
          'views': '@/views',
        }
      }
    }
  }